<c:if test="${joueur == null}"><c:redirect url="index.html" /></c:if>
<c:if test="${partie == null}"><c:redirect url="dashboard.html" /></c:if>
<div id="content" class="partieTerminee">
	<h2>R&eacute;sultats</h2>
	<c:url var="urlDashboard" value="dashboard.html" />
	<a href="${urlDashboard}" class="aDroiteDuH2">Retourner au tableau de bord</a>
	<ul id="listeResultats">
	<c:set var="cptScore" value="0"/>
		<c:forEach var="grille" items="${classement}">
			<li>
				<table class="plateau">
					<caption>
					${grille.joueur.login} - SCORE = 
					${score[cptScore]}
					</caption>
					
					<c:set var="cpt" value="0"/>
					<c:forEach var="i" begin="1" end="36">
							<c:choose>
								<c:when test="${grille.grille[cpt].numeroCase == i}">
									<td>
										<span class="jetonActif">${grille.grille[cpt].jeton.numero}</span>
									</td>
									<c:set var="cpt" value="${cpt + 1}"/>
								</c:when>
								<c:otherwise>
									<td>
										<span class="numbeur">${mapping[i]}</span>
									</td>
								</c:otherwise>
							</c:choose>
						<c:if test="${i % 6 == 0}">
							<tr>
						</c:if>
					</c:forEach>
				</table>
			</li>
			<c:set var="cptScore" value="${cptScore + 1}"/>
		</c:forEach>
	</ul>
	<div class="clearer"></div>
</div>